<template>
	<view>
		<view class="yess" v-if="userInfo.distribution.status == 3">
			<image class="c1" src="/static/mine/no.png" mode=""></image>
			<view class="">
				<view class="t1">申请失败</view>
				<view class="t2">您的身份信息模糊，请您重新申请</view>
			</view>
			<view class="btn1" @click="goback">
				重新申请
			</view>
		</view>
		<view class="yess" v-else>
			<image src="/static/mine/yes.png" mode=""></image>
			<view class="">
				<view class="t1">申请已提交</view>
				<view class="t2">您的申请已提交，请您耐心等待</view>
			</view>
			<view class="btn" @click="goback">
				我知道了
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				userInfo: {}
			};
		},
		onLoad() {
			this.$post('user/index', {
				mid: uni.getStorageSync('msg').id
			}).then(res => {
				if (res.code == 0) {
					this.userInfo = res.data
					uni.setStorageSync('msg', res.data)
				}
			})
		},
		methods: {
			goback() {
				uni.navigateBack()
			}
		}
	}
</script>

<style lang="scss">
	page {
		background: #F8F8F8;
	}

	.yess {
		text-align: center;
		margin-top: 156rpx;

		image {
			width: 236rpx;
			height: 200rpx;
		}

		.c1 {
			width: 128rpx;
			height: 128rpx;
		}

		.t1 {
			font-family: PingFang SC, PingFang SC;
			font-weight: bold;
			font-size: 32rpx;
			color: #000000;
			margin-top: 20rpx;
		}

		.t2 {
			font-family: PingFang SC, PingFang SC;
			font-weight: 500;
			font-size: 28rpx;
			color: #000000;
			margin-top: 20rpx;
		}

		.btn {
			width: 260rpx;
			height: 80rpx;
			border-radius: 40rpx 40rpx 40rpx 40rpx;
			border: 2rpx solid #FF7416;
			font-family: PingFang SC, PingFang SC;
			font-weight: 500;
			font-size: 32rpx;
			color: #FF7416;
			text-align: center;
			line-height: 80rpx;
			margin: 56rpx auto;
		}

		.btn1 {
			width: 260rpx;
			height: 80rpx;
			border-radius: 40rpx 40rpx 40rpx 40rpx;
			background: linear-gradient(133deg, #FE7444 0%, #FFA568 100%);
			font-family: PingFang SC, PingFang SC;
			font-weight: 500;
			font-size: 32rpx;
			color: #fff;
			text-align: center;
			line-height: 80rpx;
			margin: 56rpx auto;
		}
	}
</style>